/*
 * Service.java
 *
 * Created on February 4, 2007, 5:02 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package ge.info.domain;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Administrator
 */
public class Service implements java.io.Serializable
{
    private int serviceID;
    private String name;
    private String criteria;
    private List<ServiceDetail> serviceDetails;
    private int addressSearch;
    private Address address;
   
    
    public Service()
    {
    }
    
    public int getServiceID()
    {
        return serviceID;
    }
    
    public void setServiceID(int serviceID)
    {
        this.serviceID = serviceID;
    }
    
    public String getName()
    {
        return name;
    }
    
    public void setName(String name)
    {
        this.name = name;
    }
    
    public List<ServiceDetail> getServiceDetails()
    {
        if (serviceDetails == null)
        {
            serviceDetails = new ArrayList<ServiceDetail>();
        }
        return serviceDetails;
    }
    
    public void setServiceDetails(List<ServiceDetail> serviceDetails)
    {
        this.serviceDetails = serviceDetails;
    }
    
    public String getCriteria()
    {
        return criteria;
    }
    
    public void setCriteria(String criteria)
    {
        this.criteria = criteria;
    }
    
    public int getAddressSearch()
    {
        return addressSearch;
    }
    
    public void setAddressSearch(int addressSearch)
    {
        this.addressSearch = addressSearch;
    }

    public Address getAddress()
    {
        if (address == null)
        {
            address = new Address();
        }
        return address;
    }

    public void setAddress(Address address)
    {
        this.address = address;
    }
    
}
